package com.ldcc.report_system.ui.setting;

import androidx.appcompat.app.AppCompatActivity;

import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.ldcc.report_system.ApplicationConfig;
import com.ldcc.report_system.databinding.ActivityCommonBinding;
import com.ldcc.report_system.util.ActivitySkipUtil;
import com.ldcc.report_system.util.WindowUtils;

/**
 * @author wwg
 * @description 个人中心通用界面
 * @create 2021-10-21 11:13
 */
public class CommonActivity extends AppCompatActivity {

    private ActivityCommonBinding commonBinding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.commonBinding = ActivityCommonBinding.inflate(getLayoutInflater());
        setContentView(this.commonBinding.getRoot());
        // 设置界面顶部为透明
        WindowUtils.setWindowTopTransparent(getWindow());
        initPage();
    }

    /**
     * @description 初始化页面
     */
    private void initPage() {
    }

    /**
     * @description 返回键事件, 返回, 选择日报界面
     */
    @Override
    public void onBackPressed() {
        ActivitySkipUtil.backMainActivityFragment(this, ApplicationConfig.USER_INFO_FRAGMENT);
    }
}